import request from '@/utils/request'

// 查询帮助文档分类选项
export function optionsCmsHelpCategory(query) {
  return request({
    url: '/cms/cmsHelpCategory/options',
    method: 'get',
    params: query
  })
}

// 查询帮助文档分类列表
export function listCmsHelpCategory(query) {
  return request({
    url: '/cms/cmsHelpCategory/list',
    method: 'get',
    params: query
  })
}

// 查询帮助文档分类详细
export function getCmsHelpCategory(id) {
  return request({
    url: '/cms/cmsHelpCategory/' + id,
    method: 'get'
  })
}

// 新增帮助文档分类
export function addCmsHelpCategory(data) {
  return request({
    url: '/cms/cmsHelpCategory',
    method: 'post',
    data: data
  })
}

// 修改帮助文档分类
export function updateCmsHelpCategory(data) {
  return request({
    url: '/cms/cmsHelpCategory',
    method: 'put',
    data: data
  })
}

// 删除帮助文档分类
export function delCmsHelpCategory(id) {
  return request({
    url: '/cms/cmsHelpCategory/' + id,
    method: 'delete'
  })
}
